<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.css}"/>
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{/bootstrap/js/jquery.min.js}"></script>
    <title>首页</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="panel panel-primary">
            <div class="panel-heading text-center">粉丝信息</div>
            <div class="panel-body">
                <table class="table text-center table-striped table-hover table-bordered">
                    <tr>
                    <td>粉丝昵称</td>
                    <td>性别</td>
                    <td>所在城市</td>
                    <td>所在国家</td>
                    <td>所在省份</td>
                    <td>国家语言</td>
                    <td>头像图片</td>
                    </tr>
                    <tr th:each="u : ${fans}">
                        <td th:text="${u.nickname}"></td>
                        <td th:text="${u.sex}==1?'男':'女'"></td>
                        <td th:text="${u.city}"></td>
                        <td th:text="${u.country}"></td>
                        <td th:text="${u.province}"></td>
                        <td th:text="${u.language}=='zh_CN'?'中文':'English'"></td>
                        <td><img th:src="@{${u.headimgurl}}" width="50px;" height="50px;"></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>